package daw1.ed.ud8.ejercicios.ej.ej06;

class C {
	private int i;
	public C() {
		i=100;
	}
	public void g(int n) {
		i=i+n%5;
		
	}
}
class B {
	private C c;
	public B() {
		c=new C();
	}
	public void f(int i) {
		c.g(i);
		
	}
}
public class A {
	
	public A() {
		B b=new B();
		for (int i=0;i<500;i++) {
			b.f(i);
		}
	}

	public static void main(String[] args) {
		new A();
	}
}
